<?php
/**
 *采购模型
 */
class Base_Model_ProductPurchase extends Model_Base {
	const GOODS_RESOURCE_STATUS_NAME = [1 => '正常', '断产', '停产'];

	/**
	 * 获取货源状态名称
	 * @param  [type] $resourceStatusNumber 货源状态数值
	 * @return [type]           [description]
	 */
	public static function getGoodsResourceStatusName($resourceStatusNumber = null) {
		if (is_null($resourceStatusNumber)) {
			return self::GOODS_RESOURCE_STATUS_NAME;
		}
		return self::GOODS_RESOURCE_STATUS_NAME[$resourceStatusNumber] ?? "";
	}
}